﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AutoMapper;
using Simple.ViewModel;
using Simple.Entity;
using Simple.Entity.Models;

namespace HBootStrap.Admin
{
    public class AutoMapperStartupTask
    {
        public static void Execute()
        {
            Mapper.CreateMap<Sys_User, UserDto>();
            Mapper.CreateMap<UserDto, Sys_User>();

            Mapper.CreateMap<Sys_Role, RoleDto>();
            Mapper.CreateMap<RoleDto, Sys_Role>();

            Mapper.CreateMap<Sys_Menu, MenuDto>();
            Mapper.CreateMap<MenuDto, Sys_Menu>();

            Mapper.CreateMap<Sys_DataDictionary, DataDictionaryDto>();
            Mapper.CreateMap<DataDictionaryDto, Sys_DataDictionary>();
        }
    }
}